namespace VegetableSale.NET.Entities;

public class SaleQuery
{
    private int commid;
    private string commname;
    private int custid;
    private string custname;
    private int salemoney;
    private int salemount;

    public SaleQuery(int commid, string commname, int custid, string custname, int salemoney, int salemount)
    {
        this.commid = commid;
        this.commname = commname;
        this.custid = custid;
        this.custname = custname;
        this.salemoney = salemoney;
        this.salemount = salemount;
    }

    public int Commid
    {
        get => commid;
        set => commid = value;
    }

    public string Commname
    {
        get => commname;
        set => commname = value ?? throw new ArgumentNullException(nameof(value));
    }

    public int Custid
    {
        get => custid;
        set => custid = value;
    }

    public string Custname
    {
        get => custname;
        set => custname = value ?? throw new ArgumentNullException(nameof(value));
    }

    public int Salemoney
    {
        get => salemoney;
        set => salemoney = value;
    }

    public int Salemount
    {
        get => salemount;
        set => salemount = value;
    }
}